package ss.pku.jsa.worklist.sethelper;

import java.util.HashSet;
import java.util.Set;

import ss.pku.jsa.worklist.om.Value;

public class SetExcludeHelper {
	public static <M, K> Set<Value<M, K>> execute(Set<Value<M, K>> a,
			Set<Value<M, K>> b) {
		Set<Value<M, K>> set = new HashSet<Value<M, K>>();

		for (Value<M, K> value : a) {
			set.add(value);
		}
		for (Value<M, K> value : b) {
			if (set.contains(value)) {
				set.remove(value);
			}
		}
		return set;
	}

}
